<?php
/**
 * 文件描述  Sqlite数据库操作类
 * =================================================================
 * 文件名称  Sqlite.class.php
 * -----------------------------------------------------------------
 * 作    者  xiaokai<601200376@qq.com>
 * -----------------------------------------------------------------
 * 创建时间  2010-1-19
 * -----------------------------------------------------------------
 * 版权信息  创思工作室
 * =================================================================
 */

class Sqlite extends DataBase
{
    public function connect($host, $user, $password, $name, $pconnect, $table, $return) {
        $this->_conn = sqlite_open($name) or $this->halt('打开数据库失败');
    }

    public function selectDataBase($data){}

    /**
     * 执行SQL命令
     *
     * @access	public
     * @param   string  $sql
     * @return	object
     */
    public function query()
    {
        $this->formatSqlStr(func_get_args());
        $this->_result = sqlite_query($this->_conn, $this->_sqlStr) or $this->halt('', true);
        $this->_queryCount++;
        return $this;
    }

    public function execute()
    {
        
    }
    
    public function findAll($args, $all = true){}

    public function update($data, $where){}
    public function insert($data){}
    public function delete($data){}
    public function affectedRows(){}
    public function insertId(){}
    public function free(){}
    public function close(){}
    public function error(){}
}
